/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package actioncombination.dao;

import actioncombination.common.util.HibernateUtil;

/**
 *
 * @author N
 */
public class DefaultTransactionStrategy implements ITransactionStrategy{

   public void beginTransaction(){
      HibernateUtil.getInstance().getCurrentSession().beginTransaction();
   }

   public void commit(){
      HibernateUtil.getInstance().getCurrentSession().getTransaction().commit();
   }

    public void rollback() {
        HibernateUtil.getInstance().getCurrentSession().getTransaction().rollback();
    }

}
